Skip to content

Conversation

@DmEye
Copy link
Contributor

@DmEye DmEye commented Dec 24, 2024

No description provided.

@AlexPeshkoff
Copy link
Member

If you anyway touch this code - may be better remove cast to SLONG?

typedef unsigned long ULONG;
const SLONG SLONG_MIN = LONG_MIN;
const SLONG SLONG_MAX = LONG_MAX;
#define SLONG_STR_FORMAT "%ld"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have SLONGFORMAT defined in common.h, why yet another define?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the note. I didn't know.

@DmEye
Copy link
Contributor Author

DmEye commented Dec 24, 2024

If you anyway touch this code - may be better remove cast to SLONG?

Perhaps it may be better. But the cause of warning was the usage of wrong format. So, I assumed the fix is usage of proper format.

@dyemanov dyemanov merged commit 3bdaddf into FirebirdSQL:master Dec 26, 2024
@dyemanov dyemanov deleted the linux_warnings_Wformat branch December 26, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants